﻿using MotorLibrary.Repository.DTO;
using MotorLibrary.Service;
using System.Collections.Generic;
using System.Web.Http;

namespace WebMotor.Controllers
{
    public class TipoController: ApiController, ITipoController
    {
        private ITipoService _tipoService;
        public TipoController(ITipoService tipoService)
        {
            _tipoService = tipoService;
        }

        // GET api/tipo
        public IList<TipoDTO> Get()
        {
            return _tipoService.List();
        }
    }
}